package indi.zhifa.study2024.class002.busy.generalTest.business.curd.define.item.entity.request;

import com.baomidou.mybatisplus.annotation.TableField;
import indi.zhifa.study2024.class002.busy.generalTest.enums.crud.item.EItemUnitType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Schema(title = "商品定义创建请求", description = "商品定义创建请求")
public class ItemDefineCreateRequest {
    @Schema(title = "商品名称")
    private String name;

    @Schema(title = "商品描述")
    private String description;

    @Schema(title = "商品标准价格，大单位价格")
    private BigDecimal normalPrice;

    @Schema(title = "初始库存",description = "该字段仅在测试时用，省的再手动录入进货数据了，大单位")
    private Long iniStorage;

    @Schema(title = "单位枚举",description = "单位枚举，0表示只有小单位，1表示有大单位和小单位，2表示有大中小单位")
    private EItemUnitType unitType;

    @Schema(title = "小单位名称")
    private String smallUnitName;

    @Schema(title = "中单位名称")
    private String midUnitName;

    @Schema(title = "大单位名称")
    private String largeUnitName;

    @Schema(title = "一个大单位等于几个小单位")
    private Integer largeConvert;

    @Schema(title = "一个中单位等于几个小单位")
    private Integer midConvert;

    @Schema(title = "商品大类型",description = "商品大类型，此处为了简便，用一个key替代")
    private String mainType;

    @Schema(title = "商品小类型", description = "商品小类型，此处为了简便，用一个key替代")
    private String segmentType;

    @Schema(title = "商品的所属品牌", description = "商品的所属品牌，此处为了简便，用一个key替代")
    private String brand;
}
